import { Component, OnInit } from '@angular/core';
import { MobileValidatorDirective } from '../directive/mobile-validator.directive';
import { EqualValidatorDirective } from '../directive/equal-validator.directive';
@Component({
  selector: 'app-forms',
  templateUrl: './forms.component.html',
  styleUrls: ['./forms.component.css']
})
export class FormsComponent implements OnInit {

  constructor() { }

  ngOnInit() {
  }

  /**
   * @description form表单的提交函数
   * @param value form表单的值
   */
  onSubmit(forms:any){
    console.log(forms);
  }

}
